{template header}
<div id="content">
 
<div class="block">
	<div class="title">
		<h3>报名正在进行</h3>
	</div>
</div>
	
<!--{loop $eventlist $event}-->	
	<div class="event_block">
		<div class="event_left">
			<a href="index.php?c=event&a=view&id=$event['id']" target="_blank"><img src="{$event['poster']}" ></a>	
		</div>
		<div class="event_center">
			<div class="event_title">
				<a href="index.php?c=event&a=view&id=$event['id']" target="_blank">{$event['title']}</a>	
			</div>
			<div class="event_items">
				<dl>
					<dt class="gray">起止时间:</dt>
					<dd>{$event['format_starttime']}&nbsp;至&nbsp;{$event['format_endtime']} </dd>
					<dt class="gray">活动地点:</dt>
					<dd>{$event['location']}</dd>
					<dt class="gray">报名限额:</dt>
					<dd>{$event['membernum']}人</dd>
					<dt class="gray">剩余名额:</dt>
					<dd><span class="num">{$event['remainnum']}</span>人</dd>
				</dl>	
			</div>
			<div class="event_link_detail">
				<a href="index.php?c=event&a=view&id=$event['id']" target="_blank"><img src="css/default/view.png"   >&nbsp;查看活动详情</a>
			</div>
		</div>
		<div class="event_right">
			<div class="event_creator">
				发起人：<span>{$event['username']}</span>
			</div>
			<div class="event_enter_num">
				<span>{$event['follownum']}</span>人已报名
			</div>
			<div class="event_buttons">
				<input type="hidden" value="$event['id']"/>
				<input type="button" class="btn" value="我要报名"/>
			</div>
		</div>
	</div>
<!--{/loop}-->	
	
	<div class="clear"></div>

</div>
<script type="text/javascript">
$(document).ready(function () {
  	$(".btn").click(function(){ 
  		eventid=$(this).prev().val();
  		window.location="index.php?c=user&a=supply&id="+eventid;
  	}); 
});
</script>
{template footer}